home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
71A.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-17
|
498b
|
26 lines
/*
There may be additional include files required depending
upon the compile product you are using. Typical compilers
include Microsoft C by Microsoft or Turbo C by Boland Int'l.
*/
#include <stdio.h>
struct payroll {
char name[40];
long ssnumber;
long salary;
};
main()
{
int i,j;
struct payroll oneperson[5];
for(i=0; i<5; i++) {
oneperson[i].salary = 15000;
oneperson[i].ssnumber = 777777777;
for(j=0; j<40 ; j++)
oneperson[i].name[i] = '\0';
}
}